<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<h1>Maintenance</h1>

<div class="card-container">
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Flush TYPO3 and PHP Cache', subtitle: 'Caching', icon: 'Icons/modules/install-clear-cache.svg'}" />
        <div class="card-content">
            <p class="card-text">This action directly clears all registered caches including opcode cache.
                This utility is also present in TYPO3’s backend: Top Bar > Clear Cache > Flush all caches.
                A fatal error will be thrown if a broken extension is detected. If this occurs, use the extension tester utility (Upgrade > Check For Broken Extensions).
            </p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-primary " data-inline="1"  data-require="TYPO3/CMS/Install/Module/Maintenance/Cache">Flush cache</a>
        </div>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Analyze Database Structure', subtitle: 'Database', icon: 'Icons/modules/install-database-analyze.svg'}" />
        <div class="card-content">
            <p class="card-text">Compare and update the database table and field definitions of your installation against the specification defined for every activated extension.</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/Module/Maintenance/DatabaseAnalyzer">Analyze database</a>
        </div>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Remove Temporary Assets', subtitle: 'Caching', icon: 'Icons/modules/install-clear-files.svg'}" />
        <div class="card-content">
            <p class="card-text">Clears temporary files including concatenated JS/CSS files and processed images.</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/Module/Maintenance/ClearTypo3tempFiles">Scan temporary files</a>
        </div>
    </div>
    <div class="card card-size-fixed-small {f:if(condition:'{composerMode}', then: 'card-disabled')}">
        <f:render partial="Card/Header" arguments="{ title: 'Rebuild PHP Autoload Information', subtitle: 'Caching', icon: 'Icons/modules/install-clear-autoload.svg'}" />
        <div class="card-content">
            <p class="card-text">Resets autoload information for all active third party extensions.</p>
        </div>
        <f:if condition="{composerMode}">
            <f:then>
                <div class="card-footer text-muted">
                    You can't use this feature, because your installation is in composer mode.
                    Guide: <a href="https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Autoloading/Index.html#loading-classes-with-composer-mode" target="_blank" rel="noreferrer">Composer dumpautoload</a>.
                </div>
            </f:then>
            <f:else>
                <div class="card-footer">
                    <a href="#" class="btn btn-primary " data-inline="1"  data-require="TYPO3/CMS/Install/Module/Maintenance/DumpAutoload">Dump autoload</a>
                </div>
            </f:else>
        </f:if>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Clear Persistent Database Tables', subtitle: 'Database', icon: 'Icons/modules/install-clear-database.svg'}" />
        <div class="card-content">
            <p class="card-text">Truncates persistent database tables, which are not related to caching.</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/Module/Maintenance/ClearTables">Scan tables</a>
        </div>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Create Administrative User', subtitle: 'Backend Users', icon: 'Icons/modules/install-create-admin.svg'}" />
        <div class="card-content">
            <p class="card-text">Create new administrative users and grant them system maintainer privileges (optional).</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-default" data-modal-size="small" data-require="TYPO3/CMS/Install/Module/Maintenance/CreateAdmin">Create Administrator</a>
        </div>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Reset Backend User Preferences', subtitle: 'Backend Users', icon: 'Icons/modules/install-reset-user.svg'}" />
        <div class="card-content">
            <p class="card-text">Clears preferences and settings for all backend users. The <code>uc</code> field is then set to an empty string.</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-primary " data-inline="1"  data-require="TYPO3/CMS/Install/Module/Maintenance/ResetBackendUserUc">Reset backend user preferences</a>
        </div>
    </div>
    <div class="card card-size-fixed-small">
        <f:render partial="Card/Header" arguments="{ title: 'Manage Language Packs', subtitle: 'Language', icon: 'Icons/modules/install-manage-language.svg'}" />
        <div class="card-content">
            <p class="card-text">Download and update language packs for installed extensions.</p>
        </div>
        <div class="card-footer">
            <a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/Module/Maintenance/LanguagePacks">Manage languages</a>
        </div>
    </div>
</div>

</html>
